<template>
  <div class="padding-lr30">
    <textarea name cols="30" rows="10" v-model="content" placeholder="请填写详尽的反馈信息"></textarea>
    <div class="text-ff text-center">
      <div class="sure bg-ff0 rem-34px" @click="getData">提交</div>
    </div>
  </div>
</template>


<script>
export default {
  data() {
    return {
      content: ""
    };
  },
  mounted() {document.querySelector('html').style.backgroundColor = "#ffffff"},
  methods: {
    getData() {
      this.$axios.post( "/wap/handle/feedback", {
        token: window.localStorage.getItem("token"),
        content: this.content
      }).then(res => {
        this.$toast(res.data.msg);
        if (res.data.code == 0) {
          this.$router.go(-1);
        }
      });
    }
  }
};
</script>
<style scoped>
textarea {
  border: 1px solid #cccccc;
  border-radius: 5px;
  width: 100%;
  min-height: 6rem;
  resize: none;
  margin: 0.3rem 0;
  padding: 0.3rem;
}
</style>